#include <iostream>
#include <cstdlib>
using namespace std;

int main()
{
    int n;
    cin >> n;
    string s;
    s = to_string(n);

    for (int i = 0; i < s.size(); i++)
    {
        if (s[i] % 2 == 1)
            s[i] = '1';
        else
            s[i] = '0';
    }
    int ret = stoi(s);
    cout << ret << endl;
}